package edu.sctu.zhuyingzhi.month201506.day20150623.jsonTest;

/**
 * Created by user13 on 2015/6/24.
 */
public class PrintJson {

    public static void printf(MainData mainData){
        System.out.println("error:"+mainData.error);
        System.out.println("size:"+mainData.size);
        System.out.println("page:"+mainData.page);
        System.out.println("message:"+mainData.message);
        System.out.println("count:"+mainData.count);

        for (int i = 0; i < mainData.list.size(); i++) {
            System.out.println("good"+i+":");
            System.out.println("goods_id:"+mainData.list.get(i).goods_id);
            System.out.println("goods_name:"+mainData.list.get(i).goods_name);
            System.out.println("goods_price:"+mainData.list.get(i).goods_price);
        }
    }
}
